from resolve import resolve
file = resolve('./rn.count')


def next():
    with open(file) as count:
        c = count.read()
        with open(file, 'w') as count:
            count.write(str(int(c)+1))
        return c
